package co.baiku.boot.pay.v3.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

@JsonIgnoreProperties(ignoreUnknown = true)
public class WeixinPayV3Certificate implements Serializable {
    @JsonProperty("serial_no")
    private String serialNo;
    @JsonProperty("effective_time")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ssX", timezone = "GMT+8")
    private Date effectivTime;
    @JsonProperty("expire_time")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ssX", timezone = "GMT+8")
    private Date expireTime;
    @JsonProperty("encrypt_certificate")
    private WeixinPayV3EncryptCertificate encryptCertificate;

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public Date getEffectivTime() {
        return effectivTime;
    }

    public void setEffectivTime(Date effectivTime) {
        this.effectivTime = effectivTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public WeixinPayV3EncryptCertificate getEncryptCertificate() {
        return encryptCertificate;
    }

    public void setEncryptCertificate(WeixinPayV3EncryptCertificate weixinPayV3EncryptCertificate) {
        this.encryptCertificate = weixinPayV3EncryptCertificate;
    }
}
